package top.scauwlt.config;

import lombok.Data;
import lombok.ToString;

/**
 * @Author wmm
 * @Date 2022/7/25 16:41
 */
@Data
public final class RpcConfig {
    private RpcConfig() {
    }
    private static final RpcConfig INSTANCE = new RpcConfig();

    public static RpcConfig getInstance() {
        return INSTANCE;
    }

    private  int nettyPort = 9998;
    private  String loadBalanceAlgorithm = "consistent_hash";
    private  String registryType = "zk";
    private  String registryAddress = "127.0.0.1:2181";
    private  String compressType = "gzip";
    private  String serializationType = "kryo";

}
